Returns (as an Integer) the line number in which the CharPosition character appears. Characters are numbered consecutively with the first character numbered 1.
Syntax |
|---|
|
result = EditField.LineNumAtCharPos( CharPosition ) |
Parameters |
|
|---|---|
|
CharPosition |
|
Return Value |
|
|---|---|
|
Result |
|
Notes
The first line is numbered zero. Used with ScrollPosition, this lets you scroll the EditField to a particular place in the text.